package com.tang.usercenter.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 资源表(Resource)实体类
 *
 * @author tangshencai
 * @since 2024-05-20 08:39:35
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("resource")
@ApiModel(value = "Resource", description = "资源表")
public class ResourceEntity implements Serializable {
    private static final long serialVersionUID = -99708201623225075L;
    
    /**
     * 主键
     */     
	@ApiModelProperty(value = "主键")
    @TableField("id")
    private Long id;
    
    /**
     * 父资源
     */     
	@ApiModelProperty(value = "父资源")
    @TableField("parent_id")
    private Long parentId;
    
    /**
     * 资源名称
     */     
	@ApiModelProperty(value = "资源名称")
    @TableField("resource_name")
    private String resourceName;
    
    /**
     * 资源路径
     */     
	@ApiModelProperty(value = "资源路径")
    @TableField("request_path")
    private String requestPath;
    
    /**
     * 图标
     */     
	@ApiModelProperty(value = "图标")
    @TableField("icon")
    private String icon;
    
    /**
     * 是否叶子节点
     */     
	@ApiModelProperty(value = "是否叶子节点")
    @TableField("is_leaf")
    private Integer isLeaf;
    
    /**
     * 资源类型
     */     
	@ApiModelProperty(value = "资源类型")
    @TableField("resource_type")
    private String resourceType;
    
    /**
     * 排序
     */     
	@ApiModelProperty(value = "排序")
    @TableField("sort_no")
    private Integer sortNo;
    
    /**
     * 是否根节点
     */     
	@ApiModelProperty(value = "是否根节点")
    @TableField("is_system_root")
    private Integer isSystemRoot;
    
    /**
     * 是否有效
     */     
	@ApiModelProperty(value = "是否有效")
    @TableField("enable_flag")
    private Integer enableFlag;
}
